//
//  main.cpp
//  CollectionTest
//
//  Created by Dusan Vujosevic on 2013-10-25.
//  Copyright (c) 2013 Suavetech. All rights reserved.
//

#include "TestEngine.h"
#include <stdio.h>
#include "StdSet.h"
#include "StdUnorderedSet.h"
#include "SkipListSet.h"
#include "JimDelightHashTable.h"
#include "JimDelightHashTable2.h"
#include "JimDelightHashTable3.h"
#include "NwayTreeCollection.h"

int main(int argc, const char * argv[])
{
	TestEngine e;
	if(!e.init())
	{
		fprintf(stderr, "Engine failed to initialize\n");
		return -1;
	}
	
	{
		StdSet s(e.elemCount());
		e.runTest(&s);
	}
	
	{
		StdUnorderedSet s(e.elemCount());
		e.runTest(&s);
	}

	{
		SkipList s(e.elemCount());
		e.runTest(&s);
	}
	
	{
		JimDelightHashTable s(e.elemCount());
		e.runTest(&s);
	}

	{
		JimDelightHashTable2 s(e.elemCount());
		e.runTest(&s);
	}
	
	{
		JimDelightHashTable3 s(e.elemCount());
		e.runTest(&s);
	}
	
	{
		NwayTreeCollection c(e.elemCount());
		e.runTest(&c);
	}
	return 0;
}

